<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://localhost:8080/MyServlet/servlet" method="get">
    用户名：<input type="username" name="username" id="username"><br>
    密码：<input type="password" name="password" id="password"><br>
    爱好：<input type="checkbox" name="hobby" value="C">C
    <input type="checkbox" name="hobby" value="C++">C++
    <input type="checkbox" name="hobby" value="Java">Java
    <input type="checkbox" name="hobby" value="Python">Python
    <br>
    <input type="submit" value="提交">
</form>
</body>
</html>